<!DOCTYPE html>
<!-- saved from url=(0030)http://shop.nubia.com/flow.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>订单信息确认——努比亚官网努比亚nubia智能手机官网</title>

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta property="wb:webmaster" content="6bdcc5762d77ce58">
<meta property="qc:admins" content="4267477257665211636">
<meta name="baidu-site-verification" content="YjQteHb3gi">
<meta name="charset" content="utf-8">
<meta name="wb:webmaster" content="6bdcc5762d77ce58">
<meta name="keywords" content="智能手机,拍照手机,努比亚手机,nubia Z9 Max,nubia Z9 mini,nubia Z7,nubia Z7 Max,nubia Z7 mini,nubia X6">
<meta name="description" content="作为全球高端智能手机提供商，努比亚官网为您提供nubia Z9 Max,nubia Z9 mini,nubia Z7, nubia Z7 Max, nubia Z7 mini, nubia X6等产品介绍及在线购买。">
<link rel="shortcut icon" href="http://static.nubia.cn/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="{{ asset('/css/rdialog.css') }}">
<link rel="stylesheet" href="{{ asset('/css/style_0506.css') }}">
<link rel="stylesheet" href="{{ asset('/css/fancybox.css') }}">
<link rel="stylesheet" href="{{ asset('/css/bx_styles.css') }}">
<link rel="stylesheet" href="{{ asset('/css/owl.carousel.css') }}">
<link rel="stylesheet" href="{{ asset('/css/base.css') }}">
<link rel="stylesheet" href="{{ asset('/css/nb-layout.css') }}">
<link rel="stylesheet" href="{{ asset('/css/nb.home.highlight.css') }}">
<link rel="stylesheet" href="{{ asset('/css/nb.home.x2.css') }}">
<link rel="stylesheet" href="{{ asset('/css/nb-media.css') }}">
<link rel="stylesheet" href="{{ asset('/css/payment.css') }}">
<script src="{{ asset('/adm/plugins/jQuery/jQuery-2.1.4.min.js') }}"></script>
<style type="text/css">
    .discount-amount{
        background-color:#fff;
    }

    .disabled-buy {
        background-image: none;
        background-color: rgb(221, 221, 221);
        color: white;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
    }
    #receiptTitle {
        border: 1px solid #E3E3E3;
        border-radius: 4px;
        width: 500px;
        height: 20px;
        line-height: 20px;
        padding: 6px 8px 3px;
    }
    .payment-item ul li{
        float: left;
        margin-right: 20px;
    }
    .payment-item ul li span{
        height: 25px;
        line-height: 25px;
    }
    .other_address{
        float: left;
        margin-right: 30px;

    }

    #cart .step2_Box .shoppingCart .title{
        height:30px;
        line-height:30px;
    }
    .fillOrder .con .allAddress .subHd-hover{
        border: 1px solid #B5B5B5;
    }
    .btn-coupon{
        color: #fff;
        background: #e8380d;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 12px;
    }
    .btn-coupon:hover{
        color:#fff;
    }
    .btn-coupon:focus{
        border: 1px solid #BABABA;
    }
    .coupons-list th{vertical-align:middle;}
    #cart table th{padding:20px 0;}
    .coupon-del {
        background-color:#A6A3A3;
    }
    .discount-amount-disable {
        color : #A6A3A3;
    }
    .rDialog-header {
        background: #fff;
        height: 25px;
    }
    .rDialog-content {
        text-align: center;
        padding:10px 15px;
    }
    .rDialog-footer {
        text-align: center;
    }
    .rDialog-ok,.rDialog-cancel {
        border-radius: 10px;
    }
    .rDialog-cancel, .rDialog-cancel:hover{
        background: #e8380d;
    }
    .rDialog-footer a.rDialog-ok{
        color: #fb1515;
        background: #fff;
        border: 1px solid;
    }
    .rDialog-ok:hover {
        background: #fff;
    }
    .bg-cart{
    background: url(http://static.nubia.cn/images/bg_payorder_2.png) no-repeat center;
    width: 100%;
    height: 180px;
}
</style></head><style type="text/css" id="72115225"></style>




<body id="html-body" style="text-align:left;">
        <style>
        .nb-users-bar.logged:hover .nb-user-menu{display:block;}
        html {overflow-x:auto}
    </style>
<div id="nb-h-wrap">
    <div id="nb-header" class="cl">
        <a class="nubia-logo" href="http://shop.nubia.com/index.php" title="nubia 努比亚"></a>
        <a class="nubia-menu-btn" href="http://shop.nubia.com/flow.php#"></a>
        <ul class="nubia-navigator cl left">
                    <li><a href="{{ asset('/home/shopindex') }}">商城</a></li>
                    <li><a href="http://www.nubia.com/nubiaphone.php">产品</a></li>
                    <li><a href="http://app.nubia.cn/">应用</a></li>
                    <li><a href="http://www.nubia.com/service.php">服务</a>   </li>
                    <li><a href="http://www.nubia.com/store.php">体验店</a></li>
                  
                </ul>
                <ul class="nubia-navigator cl right">
                    <li class="nb-users-bar">
                     @if(session('master'))
                        <b class="user-ico"></b>
                        {{ session('master') -> username }}<a href="{{ url('/home/userinfo') }}">个人中心</a><a href="{{ url('/home/cart/index') }}">购物车</a><a href="{{ url('/home/login/logout') }}">退出</a>

                    @elseif(!session('master'))
                        <a href="{{ url('/home/register') }}" class="register">注册</a>
                        <a href="{{ url('/home/login') }}" class="login">登录</a>
                    @endif
                    </li>
                </ul>
       
    </div>
</div>

<div id="tempdom" style="width:100%;height:60px;"></div>            <!-- start content area -->
        <div class="bg-cart">
        </div>

<div class="main carts">
<form id="theForm" name="flow" method="POST" action="{{ url('/home/order/insert') }}">
{{ csrf_field() }}
            <div class="items fillOrder mt20">
                <div class="conT">
                    <div class="conB" style="float:none">
                        <div class="con checkout" style="float:none">
                                                        <!-- 配送地址开始 -->
                            <div class="address" id="shippingAddress">
                                <div class="hd">
                                    <h2>我的收货地址</h2>
                                </div>
@foreach($data_addr as $row)
@if($row -> status == 1)
<div class="allAddress">
   <div regionid="126" class="subHd subHd-checked" flag="809527" id="li_809527">
    <div class="subHd-div checked"></div>
  <p class="fl">
       </p>
       <div class="name"> {{$row -> rec}}</div>
       <div>
      {{$row -> addr}}
      </div>
      <div class="tel">电话:
       {{$row -> tel}} &nbsp;
       </div>
       <p></p>
        <div class="allAddress-btn">
            <!--     <span class="modify">修改</span> -->
    <!-- <span flag="809527" class="remove"><a href="" style="color:red">删除</a></span> -->
    {{Session::put('addr_edit',true) }}
    <span flag="809527" class="remove"><a href="{{url('/home/userinfo/edit')}}/{{$row -> id}}">修改地址</a></span>
   
    </div>
    </div>
</div>
@endif
@endforeach
          <div class="subHd">
          <!--input id="otherAddress"                                     type="radio" class="other-address" onclick="selectAddress(this.value, -1, '所有地区', 1)"
            value="-1" name="shippingAddress" regionName='所有地区' regionId='all'-->
{{Session::put('addr_edit',true) }}
 <div class="other_address add_address" style="color: #E8380D;background: #fff;border: 1px solid #E8380D;"><a href="{{url('/home/userinfo')}}">使用其他地址</a></div>
 </div>
   <div id="newAddress" class="newAddress" style="display:none;">

 <ul>
      <li>
        <label>收件人:</label>
        <div class="inputBg">
         <input type="text" name="consignee" id="consignee" class="required ">
       </div>
    </li>
   
    <li>
        <label>收货地址：</label><span id="selectedRegionNames" class="fl"></span>
        <div class="inputBg">
            <input type="text" class="required " name="address" id="address" size="40">
            <div class="field-hints" offsetelement="selectedRegionNames"></div>
        </div>
    </li>
    <li>
        <label>手机：</label>
        <div class="inputBg">
            <input type="text" class="validate-mobile " name="mobile" id="mobile">
        </div>
    </li>
    <li>
        <div class="inputBg" style="margin-left:100px">
            <div class="icheckbox_flat-blue" style="position: relative;"><input id="isDefault" value="1" type="checkbox" name="isDefault" class="" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
            <label style="position: relative;display: inline-block;vertical-align: middle;top:-5px">设为默认地址</label>
        </div>
    </li>
  </ul>
  <div class="btn clearfix">
    <div id="saveAddress" class="btn-nubia" style="margin-right:10px;margin-left:100px">保存新地址</div>
 <div id="saveAddress-cancel" class="btn-nubia" style="margin-right: 10px;color: #E8380D;background: #fff;border: 1px solid #E8380D;">取消</div>
    </div>
    </div>
    </div>
    <!-- 配送地址结束 -->
                                                            <!-- 支付方式开始 -->
    <div id="payment" class="mod">
        <div class="hd">
            <h2>支付方式</h2>
        </div>
    <div class="container payment-item">
            <ul class=" clearfix" style="padding-top:20px;">
 <li style="width:180px;" class="alipay" id="li_alipay">
<div class="iradio_flat-blue checked" style="position: relative;"><input type="radio" id="payment_alipay" name="payment" bankpayment="" discountvalue="" value="alipay" checked="true" onclick="selectPayment(this)" class="validate-reqchk-bynode nodeId:&#39;payment&#39; " style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
  <label for="payment_alipay">

       <span>支付宝支付</span>
                     <span class="icon"></span>
                </label>
      </li>
         </ul>
             </div>
                </div>
<!-- 支付方式结束 -->
<div id="shippingTime" class="mod">
<div class="hd">
<h2>配送时间</h2>
</div>
<div class="container payment-item">
<ul class="clearfix" style="padding-top:26px;margin-bottom:26px;margin-left: 40px;">

      <li>
  <div class="iradio_flat-blue" style="position: relative;"><input id="shippingTime_RestDay" type="radio" name="shippingTime" value="WorkingRestDay" class="" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
<label for="shippingTime_RestDay">
<span>工作日、双休日与假日均可送货</span>
</label>
</li>

</ul>
</div>
</div>
<!-- 配送方式开始 -->
<div class="hidden" id="shipping">
<div class="header">
<h3>
配送方式 &nbsp;
<span id="sendToAddress">(配送至:所有地区)</span>
</h3>
</div>

<div class="container">
<dl id="shipping3" class=" first">
<dt>
<div class="iradio_flat-blue checked" style="position: relative;"><input type="radio" name="shipping" supportcod="1" value="3" checked="true" onclick="selectShippingMethod(this)" class="validate-reqchk-bynode nodeId:&#39;shipping&#39; " amount="0.00" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
快递: &nbsp;&nbsp;
<span id="shippingPrice3">￥0.00</span>
</dt>
<dd>
<table class="postage">
<tbody><tr class="calculator2">
<td>
<ul>
                    <li>
nubia Z11（白金版套装 白金）(
数量:
1)
</li>
                </ul>
</td>
<td>
单件商品
<span class="price">￥0.00</span>
,每增加一件商品加收
<span class="extra-price">￥0.00</span>
.                                                                                                             </td>
<td class="last">
小计:
<span class="subtotal">￥0.00</span>
</td>
</tr>
</tbody></table>
</dd>
</dl>
</div>
</div>
<!-- 配送方式结束 -->
<!-- 发票信息开始 -->
<div id="repceipt" class="mod">
<div class="hd">
<h2>发票信息</h2>
</div>
<div class="container">
<table style="margin-top:15px;">
<tbody><tr class="hidden">
<td width="15%">是否需要开具发票：</td>
<td>
<input type="hidden" name="needReceipt" value="1" class="">
</td>
</tr>
<tr>
<td style="line-height: 28px;">
<label>
<div class="iradio_flat-blue checked" style="position: relative;"><input type="radio" name="receiptType" value="normal" checked="" class="" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; border: 0px; opacity: 0; background: rgb(255, 255, 255);"></ins></div>
普通发票
</label>
</td>
<td></td>
</tr>

<tr id="receiptCompanyRow" class="hidden">
<td>单位名称：</td>
<td>
<input type="text" class="txt" id="receiptTitle" name="receiptTitle" maxlength="25" size="50">
</td>
</tr>
<tr class="hidden">
<td>发票内容：</td>
<td>
购买商品明细
<input type="hidden" name="receiptContent" value="明细" class="">
</td>
</tr>
</tbody></table>
</div>

</div>
<!-- 发票信息结束 -->
<!-- 购物车显示开始 -->
<div id="cart" class="mod">
<div class="hd">
<h2>
商品清单                                                                               <a href="{{url('/home/cart/index')}}" class="cart-link" style="background-color: transparent;color: #e8380d; top: -5px;position: relative; ">修改清单</a>
</h2>
</div>

<div style="clear:both"></div>
<div class="step2_Box" id="step2_Box">
<table class="shoppingCart" width="100%" height="50" border="0">
<tbody>
<tr>
<th width="41%">商品名称</th>
<th width="20%">单价</th>
<th width="19%">数量</th>
<th width="20%">小计</th>
<!-- <th width="16%">操作</th>
-->
</tr>

@foreach($data as $row)
<tr>
<td>
<div class="pic">
<img src="{{ asset($row -> goodspic) }}">
</div>
<p class="title">
<a href="http://shop.nubia.com/nubiaz11/goldwhite" target="_blank">{{$row -> goodsname}}</a> </p>
</td>
<td>
￥{{$row -> price}}.00</td>
<td>
<!--div class="numBg">1</div-->
{{$row -> scnt}}</td>
<td>
<span class="subTotal">￥{{$row -> scnt * $row -> price}}.00</span>
</td>
</tr>
@endforeach
</tbody>
</table>

</div>
<!-- 费用显示开始 -->
<div id="amount">
<div class="inner">
<div class="container clearfix">
<!-- <p class="toggler" onclick="javascipt:toggleElement(this,&#39;userCoupons&#39;)"><b></b>使用优惠券</p> -->
<div id="userCoupons" class="userCoupons hide" style="margin-top: 10px;">
<p class="bottom" style="width:270px; line-height:26px;display:none;">
</p><div class="inputBg" style="width:auto;margin-top: 10px;">
优惠券号码<input type="text" id="couponSn" style="float: none;vertical-align: inherit;width: 200px;" class="">
<div class="btn-nubia" type="button" name="applyPromotionCode" value="立即使用" id="applyPromotionCode">确认</div>
</div>
<input type="hidden" id="useCoupon" name="couponSn" class="">
<input type="hidden" id="hiddenuserCoupons" class="">
<p></p>
<div class="used-coupons" style="padding-top:20px;">
<table class="coupons-list">
<tbody><tr class="coupons-head">
<th>优惠券名称</th>
<th class="coupons-sn">优惠券号码</th>
<th>优惠券金额</th>
<th>有效期</th>
<th class="coupons-control" style="width:150px">操作</th>
</tr>
<tr class="none-coupon" style="color:#999"><td colspan="5">您暂时没有可用的优惠券</td></tr>
<tr style="display:none" class="discount-amount discount-coupon">
<td colspan="5">
<!--td></td>
<td></td>
<td></td>
<td-->
<div style="float:right;margin-right:20px">
<label>已优惠：</label>
<span id="discountAmount">0.00</span>
</div>
</td>
</tr>
</tbody></table>
</div>
</div>
<!-- <p class="toggler" onclick="javascipt:toggleElement(this,&#39;useCredit&#39;)"><b></b>使用牛豆支付</p> -->
<div id="useCredit" class="hide" style="margin-top: 10px;border: #e0e0e0 1px solid;">
<div class="beans">
<div class="bs-t">
<span>本次使用</span>
<input class="bs-num fmaxcredit" type="text" name="useruseCredit" value="" famx="0">
<span>牛豆支付</span>
<div class="btn-nubia btn-add" id="usedBeans">确认</div>
<!-- <input type="button" class="btn-add" id="usedBeans"> -->
<input type="button" class="btn-cancel hide btn-cancel-credit">
<label class="error hide" style="color: #e4393c;" for="userBeans">您本次最多可以使用<b class="fmaxcredit">0</b>个牛豆</label>
</div>
<div class="bs-m">
<span class="rest">您有牛豆0个，本次可用<b class="fmaxcredit">0</b>个</span>
<a href="http://shop.nubia.com/service.php?sid=4&amp;tabpage=8#services-con" target="_blank" style="text-decoration: underline;margin-left: 50px;color: red;">[了解牛豆]</a>
</div>
</div>
</div>
<!-- <p class="toggler" onclick="javascipt:toggleElement(this,&#39;useRecyle&#39;)"><b></b>使用回收代金券支付</p> -->
<div id="useRecyle" class="hide" style="margin-top: 10px;border: #e0e0e0 1px solid;">
<div class="beans">
<div class="bs-t bs-b">
<span>使用</span>
<input class="bs-num fmaxRecyle" type="text" name="useruseRecyle" value="">
<span>回收代金券支付</span>
<!-- <input type="button" class="btn-add" id="usedRecyle"> -->
<div class="btn-nubia btn-add" id="usedRecyle">确认</div>
<input type="button" class="btn-cancel hide btn-cancle-recyle">
<label class="error hide" style="color: #e4393c;" for="userRecyle"></label>
</div>
<div class="bs-m">
<span class="rest">您有回收代金券金额:￥0.00</span>
</div>
</div>
</div>

<div class="costs" style="clear:left">
<p class="product-amount">
<label>商品金额：</label>
<span id="productAmount">￥{{session('sum')}}.00</span>
</p>
<p id="isCoupon" class="hidden" style="display: none;">
<em>-</em>

</p>
<p>
</p>
<p>
<em>+</em>
<span class="shopping-amount plus">
<label>配送费用：</label>
<span id="shippingAmount">￥0.00</span>
</span>
</p><p id="shippingfeetip" class="hiden" style="line-height: 20px; color: red; display: none;">(订单未满59元，收取配送费用10元)</p>
<p></p>
<p>
<span class="order-amount">
<label>总计：</label>
<span id="payAmount" price="3199">￥{{session('sum')}}.00</span>
</span>
</p>
</div>
</div>
</div>
</div>
<!-- 费用显示结束 -->

<div class="submitorderform clearfix">


<input type="hidden" name="num" value="1" class="">


<input type="hidden" name="formHash" value="47c44b9bd473214c6755d8f2678aeff1" class="">
<input id="submitOrder" class="submit disabled-buy" type="submit" name="submitOrder" value="提交订单" ></div>
<!-- 购物车显示结束 --> </div>
</div>
</div>
</div>
</div>
<input type="hidden" name="shippingAddress" id="sAddress" value="809527" class="">
</form>
</div>
<!-- end content area -->
<div id="nb-footer">
    <div class="nubia-copyright">
        <style>
    .mz_footer-language {
        position:relative;
        cursor:default;
        background:url(http://static.nubia.cn/index/images/footer-btn-icon.jpg) no-repeat scroll 100% 80% transparent;
        display:inline;
        padding-left: 15px;
    }

    .mz_footer-language_menu {
        -moz-box-shadow:0 0 10px #E1E4E8;
        -webkit-box-shadow:0 0 10px #E1E4E8;
        box-shadow:0 0 10px #E1E4E8;
        -moz-border-radius:2px;
        -webkit-border-radius:2px;
        border-radius:2px;
        background-color:#FEFEFE;
        border:solid 1px #E1E4E8;
        display:none;
        overflow:hidden;
        position:absolute;
        left:63px;
        bottom:0;
        width:150px;
        z-index:2000
    }

    .mz_footer-language_menu a {
        display:block;
        position:relative;
        height:40px;
        line-height:40px;
        width:138px;
        margin:0 auto;
        text-decoration:none;
        border-bottom:solid 1px #E4E7E9;
        font-size:14px;
        text-align:left
    }

    .mz_footer-language_menu a i {
        display:inline-block;
        position:absolute;
        top:5px;
        width:21px;
        height:21px;
        margin:5px 15px 0 10px;
        background:url(http://static.nubia.cn/index/images/footer-language.png) no-repeat scroll 0 0 #fff;
    }

    .mz_footer-language_menu a span {
        display:block;
        float:right;
        width:100px;
        cursor:pointer;
        color:#000;
    }

    .mz_footer-language_menu a .en {
        background-position:0 0;
    }
    .mz_footer-language_menu a .es {
        background-position:-22px 0;
    }
    .mz_footer-language_menu a .de {
        background-position:-67px 0;
    }
    .mz_footer-language_menu a .it {
        background-position:-45px 0;
    }
    .mz_footer-language_menu a .de {
        background-position:-67px 0;
    }
    .mz_footer-language_menu a .th {
        background-position:-91px 0;
    }
    .mz_footer-language_menu a .in {
        background-position:-114px 0;
    }
    .mz_footer-language_menu a .ru {
        background-position: -137px 0;
    }
    .mz_footer-language_menu a .vn {
        background-position: -160px 0;
    }
    .mz_footer-language_menu a .ae {
        background-position: -182px 0;
    }
    .mz_footer-language_menu a .sa {
        background-position: -205px 0;
    }
    .mz_footer-language_menu a .cz {
        background-position: -228px 0;
    }
    .mz_footer-language_menu a .sk {
        background-position: -251px 0;
    }
    .mz_footer-language_menu a .us {
        background-position: -274px 0;
    }
    .mz_footer-language_menu a .pl {
        background-position: -297px 0;
    }

    .mz_footer-language_menu .ClobalItem {
        background: #fff;z-index: 10;
    }
    .mz_footer-language_menu .ClobalItem:visited {
        color:#000;
    }
    .nubia-copyright span.nb-footer-func{
        z-index: 9999;
    }
    .nubia-copyright span.nb-footer-func.lowindex{
        z-index: -1;
    }
    .nubia-copyright .nubia-foot-nav .mz_footer-language_menu a{
        padding:0;
        float:left;
        margin-right:4px;
    }
</style>
<noscript id="getsomeinfo" controller="flow" sku="" nid="29806876" action="" style="width:100%;height:0px;"></noscript>
<div class="nubia-foot-nav">
    <a target="_blank" href="http://www.nubia.com/service.php?sid=6">关于我们</a>|
    <a target="_blank" href="http://www.nubia.com/service.php?sid=7">联系我们</a>|
    <a target="_blank" href="http://www.nubia.com/news.php">新闻中心</a>|
    <a target="_blank" href="http://hr.nubia.com/">加入我们</a>|
    <a target="_blank" href="http://www.nubia.com/edzp8b78c9614.html">合作注册</a>|
    <a target="_blank" href="http://www.nubia.com/gongyi.php">公益</a>|
    <a target="_blank" href="http://www.nubia.com/recycle.php">以旧换新</a>|
    <a href="javascript:void(0);" onclick="showFeedBack();">问题反馈</a>|
    <div class="mz_footer-language">
      <a href="http://www.nubia.com/actitem/5881a96fb8f7622.html" title="简体中文" class="language-link">简体中文</a>
      <div id="globalContainer" class="mz_footer-language_menu" style="width:286px;display: none;">
        <a href="http://www.nubia.com/en" class="ClobalItem"><i class="en"></i><span>Global</span></a>
        <a href="http://www.nubia.com/es" class="ClobalItem"><i class="es"></i><span>Español</span></a>
        <a href="http://www.nubia.com/de" class="ClobalItem"><i class="de"></i><span>Deutschland</span></a>
        <a href="http://www.nubia.com/it" class="ClobalItem"><i class="it"></i><span>Italia</span></a>
        <a href="http://www.nubia.com/in" class="ClobalItem"><i class="in"></i><span>India</span></a> 
        <a href="http://www.nubia.com/th" class="ClobalItem"><i class="th"></i><span>Thailand</span></a>
        <a href="http://www.nubia.com/ru" class="ClobalItem"><i class="ru"></i><span>Россия</span></a>
        <a href="http://www.nubia.com/vn" class="ClobalItem"><i class="vn"></i><span>Vietnam</span></a>    
        <a href="http://www.nubia.com/ae" class="ClobalItem"><i class="ae"></i><span>UAE</span></a>
        <a href="http://www.nubia.com/sa" class="ClobalItem"><i class="sa"></i><span>Saudi Arabia</span></a>
        <a href="http://www.nubia.com/id" class="ClobalItem"><i class="en"></i><span>Indonesia</span></a>
        <a href="http://www.nubia.com/cz" class="ClobalItem"><i class="cz"></i><span>Czech</span></a>
        <a href="http://www.nubia.com/sk" class="ClobalItem"><i class="sk"></i><span>Slovak</span></a>
        <a href="http://www.nubia.com/us" class="ClobalItem"><i class="us"></i><span>United States</span></a>
        <a href="http://www.nubia.com/pl" class="ClobalItem"><i class="pl"></i><span>Poland</span></a>
      </div>
    </div>
</div>

<style type="text/css">
.feedback-main {
    height: 620px;
    padding: 0 48px 48px;
    background-color: #fff
}
.feedback-nav {
    height: 18px;
    padding-top: 30px;
    padding-bottom: 15px;
    width:95%;
    margin: 0 auto;
    border-bottom: 1px solid #e0e0e0
}
.feedback-nav li {
    float: left;
    list-style: none;
    margin: 0;
    font-size: 18px;
    line-height: 1;
    color: #424242;
    margin-left: 10px;
}
.feedback-nav .tab-active {
    color: #ff6700
}
.form-box {
    float: left
}
.form-box .title {
    height: 60px;
    margin: 0;
    line-height: 60px;
    font-weight: normal;
    color: #424242;
    font-size: 16px;
    margin-left: 26px;
}
.form-box .form-section {
    margin-bottom: 12px
}
.form-box .input-textarea {
    width: 600px;
    height: 85px;
    margin-left: 26px;
    margin-top: 15px;
    border-radius: 3px;
    padding: 10px;
    border: 1px solid #9C9C9C;
}
.form-box .input-url {
    width: 600px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.form-box .input-text {
    width: 600px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.captcha-box {
    margin-bottom: 20px
}
.captcha-box .form-section {
    float: left
}
.captcha-box .form-section .input-text {
    width: 120px;
    margin-left:26px;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
.captcha-box .captcha-img {
    float: left
}
.captcha-box .captcha-img img {
    float: left;
    height: 40px;
    margin-right: 10px
}
.captcha-box .captcha-img a {
    float: left;
    height: 40px;
    line-height: 40px
}
.iconfont,.input-label{
    margin-left: 26px;
}
#feedbackType{
    width: 200px;
    padding:10px;
    border-radius: 3px;
    border: 1px solid #9C9C9C;
}
#submitQuestion{
    border: 1px solid #ee4a17;
    display: block;
    margin-left: 26px;
    width: 140px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #ee4a17;
    border-radius: 3px;
}
/*遮罩样式开始*/
#feedback_addip_zz { 
    background-color:#000; 
    left:0;
    opacity:0.5;
    position:fixed;
    top:0;
    z-index:10500;
    filter:alpha(opacity=50);
    -moz-opacity:0.5; 
    -khtml-opacity:0.5; 
} 
#feedback-dialog {
    left:50%; 
    margin: -260px 0 0 -350px;
    padding: 1px;
    position: fixed !important;
    top: 50%;
    width: 700px;
    height: 535px;
    z-index: 10501;
    border-radius:10px; 
    display:none; 
    color: #716e5f;
    background-color:#fff;
}

.feedback_dialog_close{
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
    font-size: 30px;
    text-align: center;
    line-height: 30px;
}
/*遮罩样式结束*/
.feedback{
    border-bottom:1px solid #d5d5d5;
    width: 95%;
    margin: 0 auto;
    font-size:20px;
    color: #000;
    padding-bottom: 15px;
}
#errorTip {
    color: red;
    line-height: 41px;
    margin-left: 26px;
    text-indent: 30px;
    margin-bottom:0px;
}
#wordTip {
    margin-left:30px;
}
</style>

<div class="feedback-main" id="feedback-dialog">
    <span class="feedback_dialog_close">×</span>
    <ul class="feedback-nav  clearfix">
        <li>问题反馈</li>
    </ul>
    <div class="tab-container">
        <div class="tab-content clearfix">
            <div class="form-box">
                <h2 class="title">对您给予的帮助和支持，深表感谢！</h2>
                <div class="form-section">
                    <div class="xm-select">
                      <div class="feedbackdropdown">
                          <label for="feedbackType" class="iconfont"></label>
                            <select name="feedbackType" id="feedbackType">
                                
                            </select>
                        </div>
                    </div>
                </div>

                <div class="form-section">
                    <label for="feedbackQuestion" class="input-label">在这里描述您遇到的问题</label>
                    <span id="wordTip">还可以输入<span id="wordLeft">200</span>个字</span>
                    <textarea placeholder="问题描述须大于10小于200个字" name="feedbackQuestion" id="feedbackQuestion" onblur="countWord();" onkeyup="countWord();" class="input-text input-textarea"></textarea>
                </div>
                <div class="form-section">
                    <input placeholder="联系方式：手机、邮箱（选填）" type="text" name="feedbackContact" id="feedbackContact" class="input-text">
                </div>
                <div class="form-section">
                    <input placeholder="页面链接（选填）" type="text" name="feedbackQuestionUrl" id="feedbackQuestionUrl" class="input-text input-url">
                </div>
                <div id="captchaBox" class="form-section captcha-box">
                    <div class="form-section">
                        <input placeholder="验证码" type="text" autocomplete="off" data-authurl="" name="captcha_code" id="captcha_code" class="input-text">
                    </div>
                    <div class="captcha-img">
                        <img id="feedbackCaptchaImg" alt="" src="http://shop.nubia.com/flow.php">
                        <a id="captchaChange" href="javascript:void(0);" onclick="changeCaptcha();">看不清，换一个</a>
                    </div>
                </div>
                <div class="form-section" id="errorTip">

                </div>
                <div style="clear:both"></div>
                <a id="submitQuestion" class="" href="javascript:void(0);">提交问题</a>
                <div style="height:30px"></div>
            </div>
        </div>
    </div>
</div>

<div id="feedback_addip_zz"></div> 

        
        <span class="nb-footer-func">
            <a class="nb-apk-ico" target="_blank" href="http://ui.nubia.cn/app/app/33"></a>
            <a class="nb-cloud-ico" target="_blank" href="https://yun.nubia.com/"></a>
            <a class="nb-weibo-ico" target="_blank" href="http://www.weibo.com/p/1006062156294570"></a>
            <a class="nb-weixin-ico" href="javascript:void(0)" style="display:none"></a>
            <a class="nb-service-ico" href="javascript:;" onclick="window.open(&#39;http://livechat1.zte.com.cn/looyu/chat/p.do?c=1&amp;f=60&#39;, &#39;chat&#39;, &#39;height=460,width=690,directories=no,location=no,menubar=no,resizeable=no,status=no,toolbar=no,top=100,left=200&#39;)" title="在线客服"></a>
            <strong class="nb-tel-ico">服务热线：400-700-6600</strong>
            
            <div class="nb-footer-wx-layer">
                <img src="{{ asset('/img/nb-weixin-code-figure.jpg') }}">
            </div>
            
        </span>
        <p class="nb-footer-info"> 2012-2017 努比亚技术有限公司 版权所有 <a href="http://www.miibeian.gov.cn/" style="margin-right: 10px;">粤ICP备10006213号-2</a><a href="http://szcert.ebs.org.cn/D52B1891-CB9A-4FD0-8BC6-1D5650B567CE" target="_blank" style="margin-right: 5px;margin-left: 3px;"><img src="{{ asset('/img/govIcon.png') }}" title="深圳市市场监督管理局企业主体身份公示" alt="深圳市市场监督管理局企业主体身份公示" border="0" style="border-width:0px;border:hidden; border:none;vertical-align: middle;height: 18px;"></a> ICP经营许可证编号：粤B2-20120688<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030502000309"><img src="{{ asset('/img/57c5599015f1558.png') }}" style="vertical-align: middle;height: 18px;margin-right: 5px;margin-left: 3px;"><span style="line-height: 18px;color:#939393;">粤公网安备 44030502000309号</span></a></p>
        
    </div>

</div>
<script charset="utf-8" src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/v.js"></script><script type="text/javascript" async="" src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/collect.js"></script><script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/tm.js" async=""></script><script type="text/javascript" async="" src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/nua.js"></script><script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/hm.js"></script><script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/hm(1).js"></script><script>
var _hmt = _hmt || [];
;(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?4c721ece5961bc6c4b94bfcbef91f913";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();

;(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?ed03287223030af4802489c1974077c6";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();

var _naq = _naq || [];
   _naq.push(['_setAccount', '32559']);
 
;(function() {
var ma = document.createElement('script'); ma.type = 'text/javascript'; ma.async = true;
ma.src = ('https:' == document.location.protocol ? 'https://static' :'http://static') + '.nubia.cn/stat/nua.js';
var s = document.getElementsByTagName('script')[0];   
    s.parentNode.insertBefore(ma, s);
})();

// user scripts
</script>
<script>!(function(a,b,c,d,e,f){var g="",h=a.sessionStorage,i="__admaster_ta_param__",j="tmDataLayer"!==d?"&dl="+d:"";
if(a[f]={},a[d]=a[d]||[],a[d].push({startTime:+new Date,event:"tm.js"}),h){var k=a.location.search,
l=new RegExp("[?&]"+i+"=(.*?)(&|#|$)").exec(k)||[];l[1]&&h.setItem(i,l[1]),l=h.getItem(i),
l&&(g="&p="+l+"&t="+ +new Date)}var m=b.createElement(c),n=b.getElementsByTagName(c)[0];m.src="//tag.cdnmaster.cn/tmjs/tm.js?id="+e+j+g,
m.async=!0,n.parentNode.insertBefore(m,n)})(window,document,"script","tmDataLayer","TM-398681","admaster_tm");
// user scripts
</script>

<script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/533aa666debb12325c89644b.js" tag="user scripts"></script>
<script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/jquery.easing.js" tag="user scripts"></script>
<script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/nubia.main.js" tag="user scripts"></script>
<script src="./订单信息确认——努比亚官网努比亚nubia智能手机官网_files/jQuery.rDialog.js" tag="user scripts"></script>

   
<script type="text/javascript">
/*
jQuery('.mz_footer-language').on({
    mouseover:function(){
        jQuery('#globalContainer').css('display','block');
        jQuery('.nubia-copyright span.nb-footer-func').addClass('lowindex');
    },
    mouseleave:function(){
        jQuery('#globalContainer').css('display','none');
        jQuery('.nubia-copyright span.nb-footer-func').removeClass('lowindex');
    }
})
*/
function clearForm() {
    jQuery('#feedbackQuestion').val('');
    jQuery('#feedbackQuestionUrl').val('');
    jQuery('#feedbackContact').val('');
    jQuery('#captcha_code').val('');
    jQuery('#errorTip').html('').hide();
}
function getFeedbackType() {
    jQuery.get('/problemreport.php?a=getFeedbackType', function(resp) {
        jQuery('#feedbackType').html(resp);
    });
}
function changeCaptcha() {
    jQuery('#feedbackCaptchaImg').attr('src', '/profile.php?a=captcha&ram=' + Math.random());
}
function feedbackShowBg() { 
    var bh = jQuery("body").height(); 
    var bw = jQuery("body").width(); 
    jQuery("#feedback_addip_zz").css({ 
        height:bh, 
        width:bw, 
        display:"block" 
    }); 
    jQuery("#feedback-dialog").show(); 
} 
//关闭灰色 jQuery 遮罩 
function feedbackCloseBg() { 
    jQuery("#feedback_addip_zz,#feedback-dialog").hide(); 
}
jQuery(".feedback_dialog_close").on("click",function(){
    feedbackCloseBg();
})
function showFeedBack() {
    jQuery('#nb-footer').css('z-index', 10000);
    jQuery('#nb-footer .nubia-copyright .nb-footer-func').css('z-index', 1);
    clearForm();
    getFeedbackType();
    changeCaptcha();
    var nav_user = navigator.userAgent;
    feedbackShowBg();
}
var captchaTag = false;
function checkFeedbackCaptcha() {
    var val = jQuery('#captcha_code').val();
    if ('' == val) {
        captchaTag = false;
        jQuery('#errorTip').html("验证码不能为空").show();
    } else {
        jQuery.ajax({
            type: "post",
            url: '/profile.php?a=ajaxCheckCaptcha',
            data: {captcha: val},
            async: false,
            success: function (r) {
                if (!r.result) {
                    jQuery('#errorTip').html('').hide();
                    captchaTag = true;
                } else {
                    captchaTag = false;
                    jQuery('#errorTip').html("错误的验证码，请重新输入").show();
                }
            }
        });
    }
}
jQuery('#captcha_code').on('blur',function(){
    checkFeedbackCaptcha();
});
jQuery('#submitQuestion').click(function(){
    var feedbackType = jQuery('#feedbackType').val();
    if (feedbackType == 0) {
        alert('请选择问题类型!');return false;
    }
    var feedbackQuestion = $('#feedbackQuestion').val();
    if (feedbackQuestion.length < 10) {
        alert('请输入问题描述（10-200个字）！');return false;
    }
    if (captchaTag == false) {
        alert('请输入正确的验证码！');return false;
    }
    var feedbackQuestionUrl = jQuery('#feedbackQuestionUrl').val();
    var feedbackContact = jQuery('#feedbackContact').val();
    var rule = /(^1[3|4|5|6|7|8]\d{9}$)|(^\++\d{2,}$)/;
    var rule2 = /\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
    if (feedbackContact.length > 60) {
        alert('联系方式长度不能超过60个字符！');return false;
    }
    if (!rule.test(feedbackContact) && !rule2.test(feedbackContact)) {
        alert('联系方式请输入正确格式的手机号码或邮箱！');
        return false;
    }

    var captcha = jQuery('#captcha_code').val();
    jQuery.post('/problemreport.php?a=commit', 
        {
            feedbackType:feedbackType,
            feedbackQuestion:feedbackQuestion,
            feedbackQuestionUrl:feedbackQuestionUrl,
            contact:feedbackContact,
            captcha:captcha
        },
        function(resp) {
            alert(resp.message);
            if (resp.result == 0) {
                feedbackCloseBg();
            }
        }
    );
});
function countWord() {
    var qe = jQuery('#feedbackQuestion');
    var qLength = qe.val().length;
    var maxLimit = 200;
    if (qLength > maxLimit) {
        qe.val(qe.val().substr(0, maxLimit));
    }
    var wordLeft = maxLimit - qLength;
    if (wordLeft < 0) {
        wordLeft = 0;
    }
    jQuery('#wordLeft').html(wordLeft);
}

function changelanguage(language) {
    return false;
    document.cookie = 'DOMAINLANGUAGE' + "="+ escape (language) + ";expires=0" + ";path=/;domain=nubia.com";
    if (language == 'es') {
        location.href = 'http://es.nubia.com';
    } else if (language == 'en') {
        location.href = 'http://en.nubia.com';
    }
}



    function online_ztehn(){
        var url = 'http://livechat1.zte.com.cn/looyu/chat/p.do?c=1&f=61';
        var p = "height=460,width=690,directories=no,location=no,menubar=no,resizeable=no,status=no,toolbar=no,top=100,left=200";
        try{
            var cw = window.open(url,'chat',p);cw.focus();
        }catch(e){
         
        }
    }



    jQuery(function($){
        $('.nb-weixin-ico').on('click',function(){
            $('.nb-footer-wx-layer').toggle();
        })
        //微信二维码图
        $('#weixinimg').hover(function(){$('.weixinm').show();},function(){$('.weixinm').hide();})
        // 导航下拉
        $(".phonepage,#phone-downmenu").hover(function(){$("#phone-downmenu").show();},function(){$("#phone-downmenu").hide();})
        $(".bbs,#bbs-downmenu").hover(function(){$("#bbs-downmenu").show();},function(){$("#bbs-downmenu").hide();})
        // 返回顶部
        $(function(){
                //当滚动条的位置处于距顶部100像素以下时，跳转链接出现，否则消失
                $(function () {
                    $(window).scroll(function(){
                        if ($(window).scrollTop()>100){
                            $("#back-to-top").fadeIn(300);
                        }
                        else
                        {
                            $("#back-to-top").fadeOut(300);
                        }
                    });
                    //当点击跳转链接后，回到页面顶部位置
                    $("#top").click(function(){
                        $('body,html').animate({scrollTop:0},300);
                        return false;
                    });
                });
         });
    })


    var maxOrderAmountInfo = {"cod":{"amount":20000,"message":"\u62b1\u6b49\uff0c\u56e0\u8d27\u5230\u4ed8\u6b3e\u9650\u989d\u8981\u6c42\uff0c\u5355\u7b14\u8ba2\u5355\u91d1\u989d\u4e0d\u80fd\u8d85\u8fc72\u4e07\uff0c\u60a8\u53ef\u4ee5\u5c06\u8be5\u8ba2\u5355\u5206\u4e3a\u591a\u4e2a\u8ba2\u5355\u540e\u518d\u6b21\u63d0\u4ea4\uff0c\u4e0d\u4fbf\u4e4b\u5904\u656c\u8bf7\u8c05\u89e3\u3002"},"common":{"amount":100000,"message":"\u62b1\u6b49\uff0c\u56e0\u6211\u4eec\u7684\u53d1\u7968\u91d1\u989d\u4e0d\u80fd\u8d85\u8fc710\u4e07\uff0c\u60a8\u53ef\u4ee5\u5c06\u8ba2\u5355\u62c6\u5206\u4e3a\u591a\u4e2a\u8ba2\u5355\u540e\u518d\u6b21\u63d0\u4ea4\uff0c\u4e0d\u4fbf\u4e4b\u5904\u656c\u8bf7\u8c05\u89e3\u3002"}};
    var creditMaxNum = 0;
    var creditRatio = 0.005;
    window.addEvent('domready', function() {
        var myFormValidator = new Form.Validator.Inline('theForm');
            });
    var discountAmount = 1000;
    var priceFormat = "￥%s";
    var productAmount = 3199;
    var shippingAmount = 0;
    var codAmount = 0;
        function calShippingAmount(mount){
        return (mount < 59) ? 10 : 0;
    }
    
    var couponAmount = 0;
    var addressIdFlag = 809527;

    var _drawdialogoption = {
        title: '',
        okText:'暂不使用',
        cancelText: '立即使用',
        width: 290,
        height: 30,
        lock:true,
        isDrag:false,
        zIndex:9999
    };
    
    function getPaymentDiscount() {
        elPayment = document.getElement("input[name=payment]:checked");
        if (elPayment) {
            var discount = elPayment.get('discountValue');
            if (discount > 0) {
                return discount;
            }
        }
    }
    
    $$("input[name=payment]").addEvent("click", function(){

        var discount = getPaymentDiscount();
        if (discount > 0) {
            updatePayAmount();
        }
    });

    $$("input[name=receiptTitleType]").addEvent('click', function(){
        if (this.checked) {
            if (this.value == 'self') {
                $('receiptCompanyRow').addClass('hidden');
                $('receiptTitle').value = '';
            } else {
                $('receiptCompanyRow').removeClass('hidden');
            }
        }
    });

    $("theForm").addEvent('submit', function(e) {
        try {
            var type = $$("input[name=receiptTitleType]:checked").get('value')[0];
            var bank = $$("input[name=payment]:checked").get('value')[0];
            if (bank == 'alipaybank') {
                var bankCode = $$("input[name=bankCode]:checked").get('value');
                if (bankCode == '' || bankCode == 'undefined'){
                    alert('请选择银行。');
                    e.stop();
                    return;
                }
            }
            if (type == 'company' && $('receiptTitle').value.trim() == '') {
                $('receiptTitle').value = '';
                new Fx.Scroll(window).toElement($('receiptTitle'));
                $('receiptTitle').focus();
                alert('请填写单位名称。');
                e.stop();
                return;
            }
            var _orderpayamount = parseInt($("payAmount").getProperty('price'));
            var _paymentcode = jQuery('input[name="payment"]:checked').val();
            if (_paymentcode == 'cod' && _orderpayamount >= maxOrderAmountInfo.cod.amount) {
                alert(maxOrderAmountInfo.cod.message);
                return false;
            }
            if (_paymentcode != 'cod' && _orderpayamount >= maxOrderAmountInfo.common.amount) {
                alert(maxOrderAmountInfo.common.message);
                return false;
            }
            if (jQuery('.useCouponClass').length > 0 && jQuery('#useCoupon').val() == '') {
                var _couponlistlength = jQuery('.useCouponClass').length;
                var _resultoption = {
                    content: '您有' + _couponlistlength + '张可用的优惠券，是否立即使用?',
                    cancel: function(){
                        jQuery('#userCoupons').prev().trigger('click');
                    },
                    ok: function(){
                        $("submitOrder").addClass("disabled-buy")
                                        .set("disabled", true)
                                        .set("value", "正在提交...");
                        jQuery('#theForm').submit();
                    }
                };
                var _option = jQuery.extend({},_drawdialogoption,_resultoption);
                jQuery.dialog(_option);
            } else {
                $("submitOrder").addClass("disabled-buy")
                                .set("disabled", true)
                                .set("value", "正在提交...");
                jQuery('#theForm').submit();
            }
            return false;
        } catch(expcetion) {
            //
        }
    });


    var minusAmount = 0;
    var totalRecyleAmount = 0;
    var recyleAmount = 0.00;
    
    function toggleElement(obj,elementId) {
        jQuery('#'+elementId).toggleClass('hide');
        jQuery(obj).find('b').toggleClass('noshow');
    }
    jQuery(document).ready(function($){
        $('#zipcode').on('input',function(){
            var _v = $(this).val(),
                _reg = /^\d*$/;
            if(!(_reg.test(_v))) {
                $(this).val(_v.replace(/\D/g, ''));
            }
        })
        
        function useBeans(creditnum) {
            var _productId = jQuery('.submitorderform input[name="productId"]').val(),
                _productIds = jQuery('.submitorderform input[name="productIds"]').val(),
                _productModel = jQuery('.submitorderform input[name="productModel"]').val();
            var postdata = {"creditNum":creditnum};
            _productId != 'undefined' && (postdata.productId = _productId);
            _productIds != 'undefined' && (postdata.productIds = _productIds);
            _productModel != 'undefined' && (postdata.productModel = _productModel);
            
            jQuery.post('/flow.php?a=useCredit', postdata, function(r){
                var res = r.result;
                if (!res.result) {
                    jQuery('.bs-t').find('.error').removeClass('hide');
                    return;
                }
                jQuery('.bs-t').find('.error').addClass('hide');
                creditNum = parseFloat(res.save);
                productAmount = parseFloat(res.productAmount);
                var productAmountStr = priceFormat.replace('%s', numberFormat(productAmount)),
                    creditAmountStr = priceFormat.replace('%s', numberFormat(creditNum));
                jQuery("#productAmount").text(productAmountStr);
                jQuery("#creditAmount").text(creditAmountStr);
                if (creditNum > 0) {
                    jQuery('#credittool').show();
                    jQuery('.beans .bs-t .btn-cancel-credit').removeClass('hide');
                } else {
                    jQuery('#credittool').hide();
                    jQuery('.bs-num').val(0);
                    jQuery('.beans .bs-t .btn-cancel-credit').addClass('hide');
                }   
                updatePayAmount();
            })
        }
        
        function useRecyle(tmpRecyleAmount){
            jQuery.post('/flow.php?a=useRecyle',{'tmpRecyleAmount':tmpRecyleAmount},function(r){
                  jQuery('.btn-cancle-recyle').removeClass('hide');
               var res = r.result;
               if(!res.result){
                jQuery('.bs-b').find('.error').removeClass('hide');
                jQuery('.bs-b').find('.error').html(res.msg);
                jQuery('.btn-cancle-recyle').addClass('hide');
                return;
               } 
               
               
               recyleAmount = parseFloat(res.save);
               jQuery('.btn-cancle-recyle').removeClass('hide');
               jQuery('#recyletool').show();
               jQuery('#recyleAmount').text('￥' + recyleAmount.toFixed(2));
               updatePayAmount();
               
            });
        }
        
        jQuery('.btn-cancle-recyle').on('click',function(){
            recyleAmount = 0.00;
             jQuery('#recyletool').hide();
             jQuery('.btn-cancle-recyle').addClass('hide');
             updatePayAmount();
             jQuery('.fmaxRecyle').val('');
        });
        
        jQuery('.beans .bs-t .btn-cancel-credit').on('click', function(){
            useBeans(0);
        });
        
        jQuery('#usedRecyle').on('click',function(){
           var  tmpRecyleAmount = jQuery('.fmaxRecyle').val();
           if(isNaN(tmpRecyleAmount) || tmpRecyleAmount <= 0 || tmpRecyleAmount == ''){
            alert('代金券金额必须为正数!');
            return false;
           }
           if(tmpRecyleAmount > totalRecyleAmount){
            alert('代金券金额不能大于'+totalRecyleAmount);
            return false;
           }
           var orderTmpAmount = productAmount - couponAmount - cashCouponAmount - promotionCardAmount - minusAmount - creditNum + codAmount;
           if(tmpRecyleAmount > orderTmpAmount){
               alert('代金券金额不能大于订单总金额');
               return false;
           }
            recyleAmount = parseFloat(tmpRecyleAmount);
            jQuery('.btn-cancle-recyle').removeClass('hide');
            jQuery('#recyletool').show();
            jQuery('#recyleAmount').text('￥' + recyleAmount.toFixed(2));
            updatePayAmount();
           //useRecyle(tmpRecyleAmount);
        });
        
        jQuery('#usedBeans').on('click',function() {
            var creditnum = jQuery('.bs-num').val();
            if (creditnum % 2 != 0) {
                alert("请输入偶数个牛豆数量");
                return;
            }
            var payAmount =  productAmount - couponAmount - cashCouponAmount - promotionCardAmount - minusAmount + codAmount;
            var payAmountCredit = Math.round(payAmount/creditRatio*0.5);
            payAmountCredit = payAmountCredit%2 == 0 ? payAmountCredit : (payAmountCredit-1);
            if (creditnum < 0 || creditnum == '') {
                alert('请输入要使用的牛豆数目');
            } else if(creditnum > payAmountCredit) {
                jQuery('.bs-t').find('.error').removeClass('hide');
            } else {
                useBeans(creditnum);
            }
        })
        
        ;(function(){
            if (navigator.userAgent.match(/msie/i)) {
                document.getElementById('zipcode') && document.getElementById('zipcode').attachEvent('onpropertychange',
                    function(e){ $('#zipcode').trigger('input'); }); 
            }
        })();
        
        $('input').iCheck({
            checkboxClass: 'icheckbox_flat-blue',
            radioClass: 'iradio_flat-blue'
        });
        
        $('#shippingAddress ins').on('click',function(){
            jQuery(this).siblings('input').trigger('click');
        })
        
        $('#payment ins').on('click',function(){
            jQuery(this).siblings('input').trigger('click');
        })
        jQuery('#payment label').on('click',function(){
            jQuery(this).siblings('div').find('input').trigger('click');
        })
        
        jQuery('.container .receipthead ins').on('click',function(){
            if ($(this).siblings('#per').length > 0) {
                //$(this).siblings('input').trigger('click');
                $('#receiptCompanyRow').hide();
                $('#receiptTitle').val() == "";
            } else {
                //$(this).siblings('input').trigger('click');
                $('#receiptCompanyRow').show();
            }
        })
        jQuery('.container .receipthead label').on('click',function(){
            if ($(this).find('#per').length > 0) {
                //$(this).find('#per').trigger('click');
                $('#receiptCompanyRow').hide();
                $('#receiptTitle').val() == "";
            } else {
                //$(this).find('#com').trigger('click');
                $('#receiptCompanyRow').show();
            }
        })
        $(".costs").hover(function(){
            $(".costs-info").show();
        },function(){
            $(".costs-info").hide();
        });
        $("input.due").click(function(){
            var order_fee = 3199;
            computeFee(order_fee);
            $$("input[name=dueCount]").set('value', jQuery("#totalDue").text());
        });
        $('#due6').trigger('click');
        
        $(".allAddress").on("click",'.subHd,.subHd-checked',function(){
            $(this).removeClass("subHd-hover");
            var flag = $(this).attr('flag');
            $('#sAddress').val(flag);
        var regionId = $(this).attr('regionId');
            $(this).siblings("div").children(".subHd-div").removeClass("checked");
            $(this).children(".subHd-div").addClass("checked");
            $(this).siblings().removeClass("subHd-checked");
            $(this).addClass("subHd-checked");
        $.ajax({
        dataType : 'json',
        url : '?a=checkRegionSupportCod',
        data : {regionId:regionId},
        type : 'GET',
        success : function(ret){
            if(ret.result == 0){
                $('#li_cod').hide();
            }else{
                $('#li_cod').show();
            }
            $('#payment_alipay').prop('checked',true);
            $('#payment_alipay').parent('div').addClass('checked');
            $('#payment_cod').prop('checked',false);
            $('#payment_cod').parent('div').removeClass('checked');
        }
        }); 
        });
        $('.subHd-checked').trigger('click');
        // $('#regionId').removeAttr('disabled');
        // $('#saveAddress').removeAttr('disabled');
        $(".add_address").on("click",function(){
            $(".newAddress").toggle();
            $('.hide_address').hide();
            $('.more_address').text('显示更多地址');
            if($('.allAddress').is(':visible')){
                $(".allAddress").hide();
            }else{
                $$(".allAddress").show();
            }
            $('.other_address').hide();
            
        });
        $("#saveAddress").on("click",function(){
            $(".allAddress").show();
            $('.other_address').show();
            $('#newAddress').hide();
        })
        $('.allAddress').on('click','.default',function(e){
            var flag = $(this).attr('flag');
            var tmp = $(this); 
            $.ajax({
               dataType : 'json',
               url : 'memberaddress.php?a=setDefault',
               data : {id:flag},
               type : 'POST',
               success : function(ret){
                    if(ret.result){
                        alert('设置默认地址成功!');
                        // if(!$('.allAddress div').hasClass('subHd-checked')){
                        //     tmp.parent().parent().addClass('subHd-checked');
                        //     tmp.parent().parent().children('.subHd-div').addClass('checked');
                        //     $('#sAddress').val(flag);
                        // }
                        
                    }else{
                        alert('设置默认地址失败!');
                    }
               }
            });
            e.stopPropagation();
        });
        
        $('.more_address').on('click',function(){
           $('.hide_address').toggle(); 
           var text = $(this).text();
           if(text == '显示更多地址'){
               $(this).text('收起地址');
           }else{
               $(this).text('显示更多地址');
           }
        });
        
        $('.allAddress').on('click','.remove',function(e){
            var flag = $(this).attr('flag');
            var tmp = $(this);
            if(confirm('确定删除该收货地址?')){
                $.ajax({
                    dataType:'json',
                    url : '/memberaddress.php?a=ajaxRemove',
                    data : {id:flag},
                    type : 'GET',
                    success : function(ret){
                        if(ret.result){
                            tmp.parent().parent().remove();
                            if(tmp.parent().parent().hasClass('subHd-checked')){
                                $('#sAddress').val();
                            }
                            $('.hide_address:eq(0)').show();
                            $('.hide_address:eq(0)').removeClass('hide_address');
                        }else{
                            alert('删除地址失败!');
                        }
                    }  
                });
            }
            
            e.stopPropagation();
        });
        $(".allAddress .subHd").hover(
            function(){
                if(!$(this).hasClass("subHd-checked")){
                    $(this).addClass("subHd-hover");
                }else{
                    $(this).removeClass("subHd-hover");
                }
            },
            function(){
                $(this).removeClass("subHd-hover");
            }
        );
        
        if(addressIdFlag == 0){
            var el = document.getElementsByClassName("subHd");
            el[0].click();
        }

        $('.coupons-list').on('click','.useCouponClass',function(){
            var flag = $(this).attr('flag');
             useCoupon({id: flag,_me:$(this)});
        });
        
        $('.coupons-list').on('click','.coupon-del',function(){
            var couponSn = $(this).attr('couponSn');
            var couponValue = $(this).attr('couponValue');
            var flag = $(this).attr('flag');
            removeCoupon(couponSn,couponValue,flag,$(this));
        });

        $('#saveAddress-cancel').click(function(){
            $('.allAddress').show();
            $('#newAddress').hide();
            $('.other_address').show();
        });
        $('#submitOrder').on('click',function(){
            var img = new Image();
            img.src = "http://stat.nubia.cn/checkstatus?action=incr&key=presaletoflowcommit";
        })
    });
</script><script type="text/javascript" id="">var _smq = _smq || []; _smq.push(['_setAccount', '33a5ac6', new Date()]); _smq.push(['pageview']); (function() { var sm = document.createElement('script'); sm.type = 'text/javascript'; sm.async = true; sm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'site.cdnmaster.cn/sitemaster/collect.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sm, s); })(); </script>


<!-- Elapsed time: 99.17 ms, Memory amount: 4.50 mb --></body></html>